import {
    a as createElementBlock,
    b as createBaseVNode,
    d as defineComponent,
    I as renderSlot,
    n as normalizeClass,
    o as openBlock
} from "./index-Dfdf_Rjk.js";

const _sfc_main = /* @__PURE__ */ defineComponent({
    __name: "IconButton",
    props: {
        disabled: {type: Boolean},
        iconClass: {}
    },
    setup(__props) {
        return (_ctx, _cache) => {
            return openBlock(), createElementBlock("div", {
                class: normalizeClass(["flex-center cursor-pointer rounded", _ctx.disabled ? "op-50 cursor-not-allowed" : "hover:bg-gray/20"])
            }, [
                createBaseVNode("div", {
                    class: normalizeClass([_ctx.iconClass, "flex-none"])
                }, null, 2),
                renderSlot(_ctx.$slots, "default")
            ], 2);
        };
    }
});
export {
    _sfc_main as _
};
